home *** CD-ROM | disk | FTP | other *** search
/ User's Choice Windows CD / User's Choice Windows CD (CMS Software)(1993).iso / win_u_z / wshell11.zip / WINSHELL.TXT < prev    next >
Text File  |  1991-11-18  |  7KB  |  188 lines

  1.  
  2.  
  3.  
  4. WINDOWS SHELL
  5. FOR MICROSOFT WINDOWS 3.0
  6.  
  7.  
  8.  
  9.  
  10. by
  11.  
  12.  
  13.  
  14.  
  15. Greg McCain
  16.  
  17. October 25, 1991
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29. Advisor: Charles Dana
  30. Computer Science Department
  31. School of Engineering
  32. California Polytechnic State University
  33. 199
  34.  
  35.  
  36. TABLE OF CONTENTS
  37.  
  38.  
  39.  
  40. ABSTRACT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .    ii
  41.  
  42. Section
  43.  
  44.     I.     Purpose of Windows Shell . . . . . . . . . . . . . . . . . . . . . . . .    1
  45.  
  46.     II.    Features of Windows Shell . . . . . . . . . . . . . . . . . . . . . . . .     2
  47.  
  48.         Command Line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .    2
  49.  
  50.         Aliasing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .    3
  51.  
  52.         Environment Variables . . . . . . . . . . . . . . . . . . . . . . . . . . .     4
  53.  
  54.         Action Bar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .    5
  55.  
  56.         Internal Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .     6
  57.  
  58.         Shell Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .     7
  59.  
  60.  
  61. ABSTRACT
  62.  
  63.  
  64. This document discusses the purpose and features of a command line shell for 
  65. Microsoft Windows 3.0, the Windows Shell.  The Windows Shell allows users launch 
  66. both DOS and Windows programs from a command line environment, as well as 
  67. perform disk maintenance operations such as copy, deleting, and moving files.
  68. The Windows Shell is implemented in the Microsoft Windows 3.0 environment.  
  69. The shell has been tested on systems running Windows in VGA and EGA video 
  70. modes.  The Windows Shell uses Windows 3.0 non-preemptive multitasking 
  71. techniques to allow multiple instances of the Windows Shell to run concurrently, as 
  72. well as other programs in the Windows environment.
  73. The Windows Shell introduces several new features to the typical command shell 
  74. environment, including interactive editing of Aliases and Environment variables,  an 
  75. "Action Bar" to quickly execute a command, the ability to set "permanent" options in 
  76. shell commands, and customizable fonts and screen colors.
  77.  
  78.  
  79. PURPOSE OF WINDOWS SHELL
  80.  
  81.  
  82. The Windows Shell fills a gap in the Windows 3.0 environment.  The original 
  83. environment provides a highly graphic user interface for executing programs and file 
  84. management.  While this is great for naive users, the graphical interface can become 
  85. cumbersome to experienced users.  The Windows Shell is intended for experienced 
  86. users, providing quick manipulation of files and directories, as well as executing 
  87. Windows and DOS programs.  The Windows Shell also includes some extra 
  88. graphical niceties that are discussed in the following section.  
  89.  
  90.  
  91. FEATURES OF WINDOWS SHELL
  92.  
  93.  
  94. THE COMMAND LINE
  95.  
  96. figure 1
  97. The Windows Shell provides a command line interface to the windows environment.  
  98. The command line is similar in appearance to a DOS shell, with the following 
  99. exceptions:
  100. - The Windows Shell prompt allows for text marking, cutting, and pasting.
  101. - The Windows Shell offers the "Action Bar" seen on the left side of the shell 
  102. (see figure 1.)
  103. - The Windows Shell allows the user to configure the color and font used by 
  104. each instance of the shell.
  105. - The Windows Shell recognizes the '&' character to run a windows program 
  106. minimized.
  107.  
  108.  
  109. ALIASES
  110. Windows Shell allows the user to define aliases.  Aliases allow long or complex 
  111. commands to be abbreviated for quick access.  
  112.  
  113.  
  114. figure 2
  115. Windows shell provides the Alias Editor  (as seen above in figure 2) for quick 
  116. viewing and editing of aliases.
  117.  
  118.  
  119. ENVIRONMENT VARIABLES
  120.  
  121. The Windows 3.0 environment provides environment variables similar to that of 
  122. DOS and UNIX.  Unfortunately, the environment variables in the Windows Shell 
  123. are not inherited by the programs it executes.  Each new program gets a copy of the 
  124. environment that was recorded when windows was started.  However,  the 
  125. environment variables do effect the shell itself, which is useful for changing the path 
  126. or prompt.  
  127.  
  128.  
  129. figure 3
  130. Windows Shell provides the Environment Editor (as seen above in figure 3) for 
  131. quick viewing and editing of environment variables.
  132.  
  133.  
  134. ACTION BAR
  135. The action bar is a column of eight buttons along the left side of the shell (see 
  136. figure 1)  It allows users to execute a predefined command at the press of a button.  
  137. The following window is used to configure the action bar:
  138.  
  139.  
  140. figure 4
  141. The Button Configuration Window allows the users to define the text seen on 
  142. the buttons and the command that is carries out.  The user can access text marked 
  143. on the Windows Shell using the '=' character.  The '=' character is replaced by a 
  144. string containing the marked text when the command is executed.  This makes it 
  145. easy for a user to mark a block of text and perform actions upon it, such as deleting 
  146. or editing files.
  147.  
  148.  
  149. INTERNAL COMMANDS
  150. Most shells provide shell commands which are built into the shell itself.  The 
  151. Windows Shell provides only the most basic shell commands, including: change 
  152. directory (cd), make directory (md), and remove directory (rd).  The rest of the 
  153. usual shell commands are implemented as "internal commands".
  154. Each internal commands is a Windows 3.0 Dynamic Link Library (DLL).  The 
  155. Windows Shell uses a Windows 3.0 DLL loading function to load and run internal 
  156. commands.  Each internal command must provide a set of functions to execute the 
  157. command, show an about box, and show an options box.
  158. The windows shell provides the "internal commands window" to view and 
  159. configure internal commands (see figure 5).
  160.  
  161.  
  162. figure 5
  163.  
  164. The options box allows the user to set "permanent" options on a command that will 
  165. be invoked each time the command is run.  The about box allows the user to view an 
  166. about box for the command which could contain useful information on what the 
  167. command does and how to use it.
  168. The reason the "internal commands" are implemented as DLL's is that it allows new 
  169. commands to be written without modification to the shell.  Also,  the format of the 
  170. DLL is such that a normal DOS shell program can easily be ported to run under the 
  171. shell.
  172.  
  173. SHELL COMMANDS
  174. The user accessible commands contained in Winshell, or Shell Commands, are 
  175. as follows:
  176. cd <dirname>     : Changes current directory to directory specified in dirname.
  177. md <dirname>     : Creates a directory as specified in dirname.
  178. rd <dirname>     : Deletes a directory as specified in dirname.
  179. <DRIVE> :    : Changes current disk specified to drive specified in DRIVE.
  180. ps    : Lists currently running processes.
  181. min <task_name>: Minimizes program with caption matching task_name.
  182. max <task_name>: Maximizes program with caption matching task_name.
  183. kill <task_name>: Closes program with caption matching task_name.
  184. exit        : Exits current Windows Shell.
  185. exitwin        : Exits Windows.
  186.  
  187.  
  188.